#ifndef SCENECREATOR_H
#define SCENECREATOR_H

#include <QObject>
#include "scenedefinition.h"

class sceneCreator:public QObject
{
Q_OBJECT
public:
    sceneCreator(sceneDefinition *def);
    void createItself();

    sceneDefinition* itsDefinition;
private:

    QFileInfo ktransform;
    QFileInfo kmakepreview;
    QDir src;

    void makeCubic();
    void makePreview();
    void createDirectory(QString dirPath);
    QString readTemplate(QString filePath);
    QString fillTemplate(QString tmplt);
    void saveTemplate(QString tmplt,QString filePath);
    void copyRequiredFiles();
    void makeViewer();
    int emptyTmpFolder();
    void processCreation();

 public slots:
    void options_checkbox_toggled(bool val);
    void editor_checkbox_toggled(bool val);
    void radar_checkbox_toggled(bool val);
    void logo_checkbox_toggled(bool val);
    void autorotate_checkbox_toggled(bool val);
    void panAngleChanged(int pan);
    void tiltAngleChanged(int tilt);


Q_SIGNALS:
    void sign_creationPercentage(int percentage);
};

#endif // SCENECREATOR_H
